<!-- Begin issues/files.tpl TEST-->
{opentable}
{if issue_priv($smarty.get.issueid,"view_private")}
{titlebar colspan=6 title=$lg->issue_files}
{else}
{titlebar colspan=5 title=$lg->issue_files}
{/if}
<tr class="sectiontableheader" align="center">
<td align="left">{$lg->file_name}</td>
<td width="20%">{$lg->on}</td>
<td width="15%">{$lg->by}</td>
<td width="10%">{$lg->file_sizeKB}</td>
{if issue_priv($smarty.get.issueid,"view_private")}
<td width="5%">{$lg->private}</td>
{/if}
<td width="5%">{$lg->delete}</td>
</tr>

{if is_array($files)}
{foreach from=$files item=file}
<tr class="{rowcolor}" align="center">
	<td align="left"><img src="{ficon id=$file.fid}" border="0"> <a href="?module=files&action=download&fid={$file.fid}">
	{if $file.summary ne ''}
	{$file.summary}
	{else}
	{$file.name}
	{/if}
	</a>
	</td>
	<td width="20%">{$file.uploaded_on|userdtime}</td>
	<td width="15%">{username id=$file.userid}</td>
	<td width="10%" align="right">{fsize id=$file.size}</td>
	{if issue_priv($smarty.get.issueid,"view_private")}
		{if $file.private eq "t"}
		<td width="5%"><a href="?module=issues&action=files&issueid={$smarty.get.issueid}&fid={$file.fid}&private=false"><img src="{$smarty.env.imgs.private}" border="0" alt="Make file Public" /></a></td>
		{else}
		<td width="5%"><a href="?module=issues&action=files&issueid={$smarty.get.issueid}&fid={$file.fid}&private=true"><img src="{$smarty.env.imgs.public}" border="0" alt="Make file Private" /></a></td>
	{/if}
	{/if}
	{if permission_check("Files-Delete",$smarty.session.userid)}
		<td width="5%"><a href="?module=files&action=delete&fid={$file.fid}&issueid={$smarty.get.issueid}"><img src="{$smarty.env.imgs.delete}" border="0" alt="Delete" /></a></td>
	{else}
		<td width="5%">&nbsp;</td>
	{/if}
	</tr>
{if isset($file.description)}
<tr>
<td colspan="6" align="left"><span style="margin-left:30px;">{$file.description}</span></td>
</tr>
{/if}
{/foreach}
{else}
<tr class="sectiontableentry1" align="center"><td colspan="6">{$lg->no_data}</td></tr>
{/if}
</table>
<br />
<!-- End issues/files.tpl -->